﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ZhimeiSoft.CharmManager.DOL
{
    /// <summary>
    /// 代办事项
    /// </summary>
    public class DBEntityCustomerReturnVisit : DBEntityBase
    {
        public override string GetTableName()
        {

            return "CUSTOMERRETURNVISIT";
        }

        public DBEntityCustomerReturnVisit()
            : base()
        {
        }
        public DBEntityCustomerReturnVisit(DataRow drRow)
        {
            this.CRETURNVISITID = Convert.ToInt32(drRow[DBEntityCustomerReturnVisit.FieldName.CRETURNVISITID]);
            this.CUSTOMERID = Convert.ToInt32(drRow[DBEntityCustomerReturnVisit.FieldName.CUSTOMERID]);
            this.CEMPLOYEEID = Convert.ToInt32(drRow[DBEntityCustomerReturnVisit.FieldName.CEMPLOYEEID]);
            this.CRETURNVISITTIME = Convert.ToDateTime(drRow[DBEntityCustomerReturnVisit.FieldName.CRETURNVISITTIME]);
            this.CMEMO = drRow[DBEntityCustomerReturnVisit.FieldName.CMEMO].ToString();
        }

        /// <summary>
        /// 回访ID
        /// </summary>
        public int CRETURNVISITID { get; set; }
        /// <summary>
        /// 会员ID
        /// </summary>
        public int CUSTOMERID { get; set; }

        /// <summary>
        /// 回访时间
        /// </summary>
        public DateTime CRETURNVISITTIME { get; set; }

        /// <summary>
        /// 回访内容
        /// </summary>
        public string CMEMO { get; set; }

        /// <summary>
        /// 经手人
        /// </summary>
        public int CEMPLOYEEID { get; set; }

        /// <summary>
        /// 字段名称
        /// </summary>
        public static class FieldName
        {
            /// <summary>
            /// 回访ID
            /// </summary>
            public const string CRETURNVISITID = "CRETURNVISITID";
            /// <summary>
            /// 会员ID
            /// </summary>
            public const string CUSTOMERID = "CUSTOMERID";
            /// <summary>
            /// 回访时间
            /// </summary>
            public const string CRETURNVISITTIME = "CRETURNVISITTIME";
            /// <summary>
            /// 回访内容
            /// </summary>
            public const string CMEMO = "CMEMO";
            /// <summary>
            /// 经手人
            /// </summary>
            public const string CEMPLOYEEID = "CEMPLOYEEID";
            
        }
        
    }
}
